import 'package:flutter/material.dart';
import 'package:test1/View/MyRowText.dart';
import 'package:test1/pages/plugs/plug_device_info.dart';
import 'package:test1/pages/plugs/plug_package_info.dart';
import 'package:test1/pages/plugs/plug_url_launcher.dart';

class Plugs extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("插件"),
        ),
        body: ListView(
          children: <Widget>[
            MyRowText("url_launcher调用短信电话等", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return new plug_url_launcher();
                }))
            ),
            MyRowText("device_info和MediaQuery获取设备信息", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return new plug_device_info();
                }))
            ),
            MyRowText("package_info获取应用信息", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return new plug_package_info();
                }))
            ),
          ],
        ),
      ),
    );
  }
}